﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using System.Web.Mvc;
using Gman.Entity.Entities;
using System.Collections.Generic;
using Gman.WebApp.ServiceControllers;

namespace Gman.WebApp.Models
{
    public class ServicioModel :BaseModel
    {
        public Guid? ID { get; set; }
        public string Action { get; set; }
        public ServicioBE Servicio { get; set; }
        public List<ServicioBE> Servicios { get; set; }
        public List<ProveedorBE> Proveedores { get; set; }
        public List<BienBE> Bienes { get; set; }

        public SelectList Tipo { get; set; }
        public SelectList Linea { get; set; }
        public SelectList Categoria { get; set; }
        public SelectList SubCategoria { get; set; }

        public ServicioModel(ServicioBE servicio, List<ServicioBE> servicios)
        {
            ID = Guid.NewGuid();
            Servicio = servicio;
            Servicios = servicios;
        }

        public ValidationBase Validator { get; set; }
        public List<KeyValuePair<string, string>> ValidationList = new List<KeyValuePair<string, string>>();
        public List<KeyValuePair<string, bool>> PropertyVisibilityList = new List<KeyValuePair<string, bool>>();

        public ToolBarModel ToolBar { get; set; }

    }

}
